home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
NTUMIN10.ARJ
/
NCUBES.C
< prev
next >
Wrap
Text File
|
1992-03-12
|
1KB
|
52 lines
/******************************************************************************
*
* Program Name : NCUBES.C
*
* Written By : Eng-Huat Ong and Kian-Mong Low.
*
* This function obtains the number of cubes in the solution array.
*
* --------------------------------------------------------------------------
* Copyright (c) 1992. All Rights Reserved. Nanyang Technological
* University.
*
* You are free to use, copy and distribute this software and its
* documentation providing that:
*
* NO FEE IS CHARGED FOR USE, COPYING OR DISTRIBUTION.
*
* IT IS NOT MODIFIED IN ANY WAY.
*
* THE COPYRIGHT NOTICE APPEAR IN ALL COPIES.
*
* This program is provided "AS IS" without any warranty, expressed or
* implied, including but not limited to fitness for any particular
* purpose.
*
* If you find NTUMIN fast, easy, and useful, a note or comment would be
* appreciated. Please send to:
*
* Boon-Tiong Tan or Othman Bin Ahmad
* School of EEE
* Nanyang Technological University
* Nanyang Avenue
* Singapore 2263
* Republic of Singapore
*
*****************************************************************************/
unsigned short ncubes(a)
unsigned char *a;
{
unsigned short c1, c2, c;
c1 = *(a+1);
c2 = *(a+2);
c = (c2<<8) | c1;
return (c);
}